package com.digiwin.demo.influx;

import org.influxdb.dto.BatchPoints;
import org.influxdb.dto.Point;
import org.influxdb.dto.Query;

import java.util.List;

/**
 * @Author yanggld
 * @Date 2020/1/2-16:46
 * @Description
 */
public interface InfluxTemplate {

	void write(Point point);

	void bentchWrite(BatchPoints points);

	<T> List<T> query(Query query, Class<T> tClass);

	void close();
}